package demo2;
//将java类的Repository 替换为下列哪个都可以
/** Controller  控制层     Mvc的controller
 * Component    Bean
 * Repository   Dao层  数据访问层
 * Service     业务层*/
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

//@Repository
@Service
public class User {
  public void sayHello(){
      System.out.println("Hello！！！");
  }
}
